package arrayList_basics.src.Extends;

public class Dog extends Animal{
    String name = super.name;
    public void look (){
        System.out.println("看家");
    }
    public void eat(){
        System.out.println("吃饭");;
    }
    public void drinking(){
        System.out.println("喝水");;
    }
    public Dog(){
        System.out.println("无参构造调用");
    }
    public Dog(String name){
        this.name = name;
        System.out.println("有参构造调用"+name);
    }
}
